<?php

namespace App\Kuafu\Category\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class CategoryCacheEnum extends BaseCodeEnum
{
    private const CATEGORY_LIST = 'category-list';

    /**
     * 分类列表
     * @param int $brandId
     * @param int $menuId
     * @return string
     */
    public static function getCategoryList(int $brandId, int $menuId): string
    {
        return sprintf(self::CATEGORY_LIST . ":%d:%d", $brandId, $menuId);
    }
}
